<?php 
session_start();
	if(isset($_POST["bt_update_cart"])){
		$array_p_num = $_POST["p_num_text"];
		$i=0;
		foreach ($_SESSION["cart"] as $product_id =>  $product_num ){
			$_SESSION["cart"][$product_id] = $array_p_num[$i];
			$i++; 
		}
		
	}
	header("Location: ../showCart.php");
?>